/*
 * @Author: chengsl
 * @Date: 2023-02-13 14:14:18
 * @LastEditors: chengsl
 * @LastEditTime: 2023-02-14 17:00:46
 * @Description: 日历信息
 */

import request from '@/utils/request'
const baseUrl = '/nodeApi'

export function queryCalendarList(data = {}) {
  return request({
    url: `${baseUrl}/calendar/List`,
    // method: 'post',
    method: 'get',
    inUrl: true,
    data,
    headers: {
      // 'Content-Type': 'multipart/form-data'
      // 'Content-Type': 'application/json'
    }
  })
}

export function addCalendar(data = {}) {
  return request({
    url: `${baseUrl}/calendar/add`,
    method: 'post',
    data,
  })
}

export function updateCalendar(data = {}) {
  return request({
    url: `${baseUrl}/calendar/update`,
    method: 'put',
    data,
		// reqEncryption: true, // 需要加密
  })
}

export function delCalendar(data = {}) {
  return request({
    url: `${baseUrl}/calendar/delete`,
    method: 'delete',
    inUrl: true,
    data
  })
}
